﻿using System;
using System.ComponentModel;
using System.Transactions;

using SIS.ENT;
using SIS.DAL;

namespace SIS.BLL
{
    /// <summary>
    /// The ListingManager class is responsible for managing Listing objects in the system.
    /// </summary>

    [DataObjectAttribute()]
    public class ListingManager
    {
        #region "Public Methods"

        /// <summary>
        /// Gets a list with all CityCodeTable objects in the database.
        /// </summary>
        /// <returns>A list with all CityCodeTable from the database when the database contains any, or null otherwise.</returns>
        [DataObjectMethod(DataObjectMethodType.Select, true)]
        public static ListingList GetList(int ListType)
        {
            return ListingDB.GetList(ListType);
        }

        [DataObjectMethod(DataObjectMethodType.Update, true)]
        public static int Save(Listing List)
        {
            return 1;
        }

        [DataObjectMethod(DataObjectMethodType.Delete, true)]
        public static bool Delete(Listing List)
        {
            return true;
        }
        #endregion
    }
}
